package org.openems.osa;

import java.awt.Component;
import java.awt.FlowLayout;

import javax.swing.JPanel;

public class SwingPanel implements IPanel {
	JPanel panel = new JPanel();
	
	@Override
	public void setLayout(FlowLayout flowLayout) {
		panel.setLayout(flowLayout);
	}

	@Override
	public void add(IComboBox combo) {
		panel.add((Component)combo.getUi());
	}

	@Override
	public Component getUi() {
		return panel;
	}

}
